# 嵌套： ①列表嵌套字典：
#           例如：classmates = [student1, student2, student3]
#       ②字典嵌套列表
#           例如："爱好": ['打游戏', '刷视频', '拍照']
#       ③字典嵌套字典
#           例如："手机": {
#                   "型号": "IQOO 11pro",
#                   "电池容量": "5000 mah",
#                   "厚度": "7 mm"
#                 }
student1 = {
    "name": "张三",
    "id": "2405550301",
    "sex": "男",
    "院系": "信息学院",
    "爱好": ['打游戏', '刷视频', '拍照'],
    "手机": {
        "型号": "IQOO 11pro",
        "电池容量": "5000 mah",
        "厚度": "7 mm"
    }
}
student2 = {
    "name": "李四",
    "id": "2405550302",
    "sex": "男",
    "院系": "信息学院",
    "爱好": ['看电视', '乒乓球', '跑步'],
    "手机": {
        "型号": "ipone 16",
        "电池容量": "4300 mah",
        "厚度": "8 mm"
    }
}
student3 = {
    "name": "王五",
    "id": "2405550303",
    "sex": "女",
    "院系": "信息学院",
    "爱好": ['听音乐', '看电视', '绘画'],
    "手机": {
        "型号": "xiaomi su7",
        "电池容量": "10000 mah",
        "厚度": "6 mm"
    }
}

classmates = [student1, student2, student3]

for student in classmates:
    print("*" * 50)
    for key, value in student.items():
        print(key, ":", value)